package com.joysuch.wwyt.mh.service;

import com.joysuch.wwyt.core.bean.SimpleStringBean;
import com.joysuch.wwyt.core.exception.ApiBusinessException;
import com.joysuch.wwyt.mh.bean.MhMonitoringTypeAddBean;
import com.joysuch.wwyt.mh.entity.MhMonitoringType;
import com.joysuch.wwyt.patrol.entity.bean.SimpleListDataType;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface MhMonitoringTypeService {
      //List<MhMonitoringTypeBean> finAll();

    List<MhMonitoringType> list(Long categoryId);

    MhMonitoringType addType(MhMonitoringTypeAddBean bean);

    MhMonitoringType updateType(MhMonitoringTypeAddBean bean);

    void deleteType(Long id) throws ApiBusinessException;

    Page<MhMonitoringTypeAddBean> pageType(Pageable page, MhMonitoringTypeAddBean.Search condition);

    List<SimpleStringBean> getPointTypeUnits(MhMonitoringType baseConfig);
    
    List<SimpleListDataType> getSimpleList();

}
